
package com.feib.soeasy.service;

import org.springframework.transaction.annotation.Transactional;

import com.feib.soeasy.model.Payer;
import com.feib.soeasy.pagination.PaginatedList;


/**
 * @title (#)PayerService.java<br>
 * @description <br>
 * @author Anson Tsai<br>
 * @version 1.0.0 2010/11/25
 * @copyright Far Eastern International Bank Copyright (c) 2010<br>
 * @2011/2/7 create by Anson Tsai<br>
 */
@Transactional(readOnly = true)
public interface PayerService {

    /**
     * 查詢繳款人資料
     * @param groupNo
     * @param payerNo
     * @return
     */
    public Payer getPayer(String groupNo, String payerNo);
    
    /**
     * 
     * @param groupNo
     * @param payerNo
     * @param payerName
     * @param payerPhone
     * @param houseNumber
     * @param payerMobile
     * @param paginationConfig
     * @return
     */
    public PaginatedList<Payer> queryPaginationByConditions(String groupNo, String payerNo, String payerName, String payerPhone, 
                    String houseNumber, String payerMobile, PaginatedList<Payer> paginationConfig);
    
    /**
     * 
     * @param payerPk
     * @return
     */
    public Payer getPayerByPk(Long payerPk);
    
    /**
     * 儲存功能
     * @param m
     */
    @Transactional(readOnly = false)
    public Payer save(Payer p);
    
    /**
     * 刪除功能
     * @param m
     */
    @Transactional(readOnly = false)
    public void delete(Payer p);    
}
